package cn.tedu.test.luban.demo.selector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MySelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        String myConfig02 = "cn.tedu.test.luban.demo.config.MyConfig02";
        String[] configs = new String[1];
        configs[0] = myConfig02;
        //TODO 如果成功的导入了 字符串数据中的配置类,完全可以将字符串的配置放到外界文件里
        return configs;
    }
}
